<template>
	<view class="check-view" :style="{ height: width + 'rpx', width: width + 'rpx' }">
		<image class="check-img" :style="{ height: width + 'rpx', width: width + 'rpx' }" v-if="!value" src="https://ss.migudm.cn/malleoc/goods/checkbox_nor.png"></image>
		<image class="check-img" :style="{ height: width + 'rpx', width: width + 'rpx' }" v-else src="https://ss.migudm.cn/malleoc/goods/checkbox_sel.png"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newVal: false
			}
		},
		props: {
			width: {
				type: Number,
				default: 44
			},
			value: {
				type: Boolean,
				default: false
			}
		}
	}
</script>

<style scoped lang="scss">
	.check-view{
		width: 44rpx;
		height: 44rpx;
		.check-img{
			width: 44rpx;
			height: 44rpx;
		}
	}
</style>